import request from '@/utils/request'

const api_name = '/api/ucenter/wx'
const api_pay_name = '/api/order/weixin'


export default{
    //用户手机登录接口
    getLoginParam(){
        return request({
            url:`${api_name}/getLoginParam`,
            method:'get',
        })
    },

    //生成支付二维码
    createNative(orderId){
        return request({
            url:`${api_pay_name}/createNative/${orderId}`,
            method:'get',
        })
    },

    //查询支付状态
    queryPayStatus(orderId) {
        return request({
            url: `${api_pay_name}/queryPayStatus/${orderId}`,
            method: 'get'
        })
    }
}